//
//  Vector2D.h
//  Coffee
//
//  Created by sabhanayagam b on 5/27/11.
//  Copyright 2011 Cognizant. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface Vector2D : NSObject {
	//Vector components <vx , vy>
	CGFloat vx;
	CGFloat vy;
	//Point p0 , p1
	CGPoint p0;
	CGPoint p1;
}
@property CGFloat vx,vy;
@property CGPoint p0,p1;

-(void)  implementation;
-(id) initWithComponentX:(float)x Y:(float)y;
-(id) initwithPointA:(CGPoint) point0 PointB:(CGPoint)point1;
-(float) dotProduct:(Vector2D*)vect2;
-(Vector2D*) rightNormal;
-(Vector2D*) leftNormal;
-(Vector2D*) normalize;
-(Vector2D*) clone;
+(Vector2D*) createVector;
+(Vector2D*) createVectorWithComponentX:(float)x Y:(float)y;

@end
